<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="DataModelBase,com.flex44d.datamodel.DataModelBase,LOADED,PrimaryKey_,TableName_,_tableDescription,recordCollection,recordIndex,resultSet,version,fourDConnection,clear,deleteRecord,doWeHaveARecordLoaded,getRecord,getRecordList,getVImageContent,insertRecord,updateRecord" name="keywords">
<title>com.flex44d.datamodel.DataModelBase</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'DataModelBase - 4D for Flex DAO API Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">4D for Flex DAO</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?com/flex44d/datamodel/DataModelBase.html&amp;com/flex44d/datamodel/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;DataModelBase</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class DataModelBase"); titleBar_setSubNav(true,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.flex44d.datamodel</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class DataModelBase</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">DataModelBase <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
</table>
<p></p>
<p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#fourDConnection">fourDConnection</a> : SQLService<div class="summaryTableDescription">[static][write-only]
   4D SQL Service pointing to a fourd.SQLService instance.</div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#PrimaryKey_">PrimaryKey_</a> : String<div class="summaryTableDescription">
   Table's primary key field name 
   </div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#recordCollection">recordCollection</a> : ArrayCollection<div class="summaryTableDescription">
   Collection of records loaded after getRecord or getRecordList 
   </div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#recordIndex">recordIndex</a> : int = -1<div class="summaryTableDescription">
   this record's index into 4D's resultSet after getRecord or getRecordList 
   </div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#resultSet">resultSet</a> : SQLResultSet<div class="summaryTableDescription">
   4D's resultSet after getRecord or getRecordList 
   </div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#TableName_">TableName_</a> : String<div class="summaryTableDescription">
   Name of the table the record maps to
   </div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#version">version</a> : String = "1.09.08.30a"<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
</table>
</div>
<a name="protectedPropertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Properties</div>
<table id="summaryTableProtectedProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_tableDescription">_tableDescription</a> : XML<div class="summaryTableDescription">
   4D Table description in XML format
   
   table metadata in the format:
   <record primaryKey="" tablename="">
      <field name=""
       longname="table.field"
       type="text | date | time | boolean | int | real"
       length=""
       list="associated 4D list name"
       isrelated="true | false"
       formula="4D expression for calculated fields"
       readonly="true"
       required="true"/>
   </div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#DataModelBase()">DataModelBase</a>()</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#clear()">clear</a>():void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#deleteRecord()">deleteRecord</a>(callback:Function = null):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#doWeHaveARecordLoaded()">doWeHaveARecordLoaded</a>():Boolean</div>
<div class="summaryTableDescription">
   test to see if the instance contains a valid record loaded
   </div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getRecord()">getRecord</a>(callback:Function = null, recordID:String = null, query:* = null):void</div>
<div class="summaryTableDescription">
   Retrieve a record from 4D and populate its instance variables.</div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getRecordList()">getRecordList</a>(modelVO:Class, query:String, callback:Function = null, columnList:XML = null, startRec:int = 0, numOfRecords:int = -1, orderBy:String = ""):AsyncToken</div>
<div class="summaryTableDescription">[static]
   Retrieve a list of records using a query string.</div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getVImageContent()">getVImageContent</a>(pic:VImage):Bitmap</div>
<div class="summaryTableDescription">[static]
   static utility method to extract the Bitmap from a VImage object.</div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#insertRecord()">insertRecord</a>(callback:Function = null):void</div>
<div class="summaryTableDescription">
   insert a new record in the database.</div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#updateRecord()">updateRecord</a>(callback:Function = null):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#LOADED">LOADED</a> : String = "loaded"<div class="summaryTableDescription">[static]
   dispatched when a record has been loaded 
   </div>
</td><td class="summaryTableOwnerCol">DataModelBase</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="fourDConnection"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">fourDConnection</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>fourDConnection:SQLService</code>&nbsp;&nbsp;[write-only]<p>
   4D SQL Service pointing to a fourd.SQLService instance.
   
   You must set this property directly or indirectly via a VO object.
   
   </p><p>This property can be used as the source for data binding.</p>
<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set fourDConnection(value:SQLService):void</code>
<br>
</div>
<a name="PrimaryKey_"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">PrimaryKey_</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var PrimaryKey_:String</code><p>
   Table's primary key field name 
   </p></div>
<a name="recordCollection"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">recordCollection</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var recordCollection:ArrayCollection</code><p>
   Collection of records loaded after getRecord or getRecordList 
   </p></div>
<a name="recordIndex"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">recordIndex</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var recordIndex:int = -1</code><p>
   this record's index into 4D's resultSet after getRecord or getRecordList 
   </p></div>
<a name="resultSet"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">resultSet</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var resultSet:SQLResultSet</code><p>
   4D's resultSet after getRecord or getRecordList 
   </p></div>
<a name="_tableDescription"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_tableDescription</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _tableDescription:XML</code><p>
   4D Table description in XML format
   
   table metadata in the format:
   <record primaryKey="" tablename="">
      <field name=""
       longname="table.field"
       type="text | date | time | boolean | int | real"
       length=""
       list="associated 4D list name"
       isrelated="true | false"
       formula="4D expression for calculated fields"
       readonly="true"
       required="true"/>
   </p></div>
<a name="TableName_"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">TableName_</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var TableName_:String</code><p>
   Name of the table the record maps to
   </p></div>
<a name="version"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">version</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static var version:String = "1.09.08.30a"</code>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="DataModelBase()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">DataModelBase</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function DataModelBase()</code>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="clear()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">clear</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function clear():void</code>
</div>
<a name="deleteRecord()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">deleteRecord</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function deleteRecord(callback:Function = null):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">callback</span>:Function</code> (default = <code>null</code>)<code></code></td>
</tr>
</table>
</div>
<a name="doWeHaveARecordLoaded()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">doWeHaveARecordLoaded</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function doWeHaveARecordLoaded():Boolean</code><p>
   test to see if the instance contains a valid record loaded
   </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; true, is a valid record is present
   
   </td>
</tr>
</table>
</div>
<a name="getRecord()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getRecord</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getRecord(callback:Function = null, recordID:String = null, query:* = null):void</code><p>
   Retrieve a record from 4D and populate its instance variables.
    
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">callback</span>:Function</code> (default = <code>null</code>)<code></code> &mdash; callback function that gets called when the record is loaded.
   
   <p>callback function signature is</p>
   <pre>callback(recordData:XML):void<pre>
   
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">recordID</span>:String</code> (default = <code>null</code>)<code></code> &mdash; optional record ID, if specified the record is retrieved by querying on its primary key field
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">query</span>:*</code> (default = <code>null</code>)<code></code> &mdash; query string for the record to retrieve (optional)
   
   </td>
</tr>
</table>
</div>
<a name="getRecordList()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getRecordList</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getRecordList(modelVO:Class, query:String, callback:Function = null, columnList:XML = null, startRec:int = 0, numOfRecords:int = -1, orderBy:String = ""):AsyncToken</code><p>
   Retrieve a list of records using a query string.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">modelVO</span>:Class</code> &mdash; the VO class corresponding to the records to be retrieved.
   <p>the resulting record list will be an ArrayCollection populated with instances of the modelVO class</p>
   
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">query</span>:String</code> &mdash; the query string to select and retrieve the records desired.
   <p>this must be a valid <i>SQL Where</i> clause, without the <i>where<i> prefix, added internally.
   
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">callback</span>:Function</code> (default = <code>null</code>)<code></code> &mdash; callback function that gets called when the record is loaded.
   
   <p>the callback function signature must be</p>
   <pre>callback(resultSet:ArrayCollection):void<pre>
   <i>(see Flex44DInterface.getRecordList() for details)</i>
   
    </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">columnList</span>:XML</code> (default = <code>null</code>)<code></code> &mdash; custom column list to retrieve, XML listing the columns to retrieve.
   <p>The field/column list XML should be in the format:
   <pre>
      &lt;columns&gt;
        &lt;column&gt;table.field&lt;/column&gt;  -- select a field value
         &lt;function&gt;sql expression&lt;/function&gt;  -- calculated value from a SQL expression
        ...
      &lt;/columns&gt;
   </pre>
   </p>
   <p>if informed, only the columns listed will be retrieved instead of the whole record</p>
   
    </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">startRec</span>:int</code> (default = <code>0</code>)<code></code> &mdash; the starting record number to retrieve, used for paging.
    </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">numOfRecords</span>:int</code> (default = <code>-1</code>)<code></code> &mdash; the number of records to retrieve, the default -1 will retrieve all records in the resulting query.
    </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">orderBy</span>:String</code> (default = "<code></code>")<code></code> &mdash; a <i>SQL Order by</i> clause, w/o the <i>order by</i> prefix.
   
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>AsyncToken</code></td>
</tr>
</table>
</div>
<a name="getVImageContent()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getVImageContent</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getVImageContent(pic:VImage):Bitmap</code><p>
   static utility method to extract the Bitmap from a VImage object.
    
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">pic</span>:VImage</code> &mdash; a VImage object (4D picture field)
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Bitmap</code> &mdash; the VImage object Bitmap which can be used as the source for an mx:Image
   
   </td>
</tr>
</table>
</div>
<a name="insertRecord()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">insertRecord</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function insertRecord(callback:Function = null):void</code><p>
   insert a new record in the database.
    
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">callback</span>:Function</code> (default = <code>null</code>)<code></code> &mdash; method to be called after the record insertion completes (optional).
   <p>the callback signature is:</p>
   <pre>callback():void</pre>
   
   <p><i>the primary key property is set after the record is inserted</i>/<p>
   
   </td>
</tr>
</table>
</div>
<a name="updateRecord()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">updateRecord</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function updateRecord(callback:Function = null):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">callback</span>:Function</code> (default = <code>null</code>)<code></code></td>
</tr>
</table>
</div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="LOADED"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LOADED</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>public static const LOADED:String = "loaded"</code><p>
   dispatched when a record has been loaded 
   </p></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
